<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">


    <title>
        {$title}
    </title>


    <link href="<?= $assets ?>/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="<?= $assets ?>/css/icons.css" rel="stylesheet" type="text/css">
    <link href="<?= $assets ?>/css/bootstrap-table.css" rel="stylesheet" type="text/css">
    <link href="<?= $assets ?>/css/style.css" rel="stylesheet" type="text/css">

    <script type="text/javascript" src="<?= $assets ?>/js/jquery.min.js"></script>

</head>

<body>

<header>
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="<?=site_url('/')?>">Syslog</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav" id="server">
                    <li class="active"><a href="#">All</a></li>
                    {foreach $hosts as $host}
                    {if $host['Facility']>16}
                    <li><a href="#" id="{$host['Facility']}">Local<?=($host['Facility']-16)?></a></li>
                    {else}
                    <li><a href="#" id="{$host['Facility']}">Server</a></li>
                    {/if}
                    {/foreach}
                </ul>
                <form class="navbar-form navbar-left">
                    <div class="form-group">
                        <input type="text" name='searchKey' class="form-control" placeholder="Search">
                    </div>
                    <button type="button" id="search" class="btn btn-default">
                        <i class="fa fa-search"></i>
                    </button>
                    <button type="button" id="refreshTable" class="btn btn-default">
                        <i class="fa fa-refresh"></i>
                    </button>
                </form>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
</header>

<div class="main-content">
{$content}
</div>

<script type="text/javascript" src="<?= $assets ?>/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<?= $assets ?>/js/functions.js"></script>
<script type="text/ecmascript" src="<?= $assets ?>/js/bootstrap-table.min.js"></script>
<script type="text/javascript" src="<?= $assets ?>/js/jquery.knob.min.js"></script>

</body>

</html>
